const install = (Vue, vm) => {
	// 此为自定义配置参数，具体参数见上方说明
	Vue.prototype.$u.http.setConfig({
		// baseUrl: 'https://no.nmsl.top/punchcard',
		baseUrl:'https://tydk.sicau.edu.cn/punchcard',
		loadingText: '努力加载中~',
		loadingTime: 800,
		dataType: 'json',
		header: {
			'content-type': 'application/json;charset=UTF-8'
		},
	});
	Vue.prototype.$u.http.interceptor.request = (config) => {
		const token = uni.getStorageSync('UserMsg').Token
		config.header.Authorization = token;
	}
}
export default {
	install
}
